package archer.framework.ebean.mock;

import com.avaje.ebean.annotation.WhenCreated;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import java.sql.Timestamp;

/**
 * @author christ
 * @date 2016/4/26
 */
@Entity
public class AddressMock {

    @Id
    String id;

    String city;

    String remark;

    @WhenCreated
    Timestamp createTime;

    @ManyToOne
    UserMock user;

    public String getId() {
        return id;
    }

    public AddressMock setId(String id) {
        this.id = id;
        return this;
    }

    public String getCity() {
        return city;
    }

    public AddressMock setCity(String city) {
        this.city = city;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public AddressMock setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public AddressMock setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
        return this;
    }

    public UserMock getUser() {
        return user;
    }

    public AddressMock setUser(UserMock user) {
        this.user = user;
        return this;
    }
}
